//
//  File.swift
//
//
//  Created by didi on 2022/9/13.
//

import SwiftHtml
import Vapor

public struct SystemAdminModulePageTemplate: TemplateRepresentable {
    var context: SystemAdminModulePageContext

    public init(_ context: SystemAdminModulePageContext) {
        self.context = context
    }

    @TagBuilder
    public func render(_ req: Request) -> Tag {
        SystemAdminIndexTemplate(.init(title: context.title)) {
            Wrapper {
                Container {
                    context.tag
                }
                .class(add: "module-page")
            }
        }
        .render(req)
    }
}
